import request from '@/utils/request'

export default {
  findAllAsset() {
    return request({
      url: `/asset/findAllAsset`,
      method: 'get'
    })
  },
  createAsset(asset, contractName, contractId) {
    return request({
      url: `/asset/createAsset/${contractName}/${contractId}`,
      method: 'post',
      data: asset
    })
  },
  findAsset(assetId) {
    return request({
      url: `/asset/findAsset/${assetId}`,
      method: 'get'
    })
  }
}
